import { createSlice } from '@reduxjs/toolkit'

const detailSlice=createSlice({
    name:"list",
    initialState:{
        detailList:{
            start:"",
            start:"",
            price:"",
            type:""
        }
    },
    reducers:{
        setDetailList(state, action){
            state.detailList=action.payload
        }
    }
})
export const { setDetailList } = detailSlice.actions

export default detailSlice.reducer